how to simplify expressions with parentheses